import api from './index'

export const login = (data) => {
  return api.post('/users/login', data)
}

export const register = (data) => {
  return api.post('/users/register', data)
}

export const getUserInfo = () => {
  return api.get('/users/profile')
}
